In This Topic
Smart Redaction
In This Topic
PSPDFKit GdPicture.NET Library enables you to redact sensitive information from any document format.
PSPDFKit SDKs are deployed in some of the world’s most popular applications, such as those made by Autodesk, Disney, DocuSign, Dropbox, IBM, and Lufthansa.
Key Capabilities
- AI-based smart redaction — Based on its advanced artificial intelligence (AI) and document understanding engine, GdPicture.NET Library recognizes sensitive information in a document and marks it for redaction. After you validate these marks, GdPicture.NET Library removes them from the document.
- Batch processing — Process a large number of documents without user intervention.
- Redact any file – Redact any file format with raster or vector content.
- Fast processing – Most documents are redacted within a second.
- Export redacted documents — Export a document with sensitive information marked for redaction. Optionally, export the redacted document in PDF format.
Code Sample
The example below loads a PDF document, marks the sensitive information (such as credit card numbers and email addresses) for redaction, and then saves the redacted file as a PDF:
C# |
Copy Code |
---|---|
using (GdPicturePDF gdpicturePDF = new GdPicturePDF()) { gdpicturePDF.LoadFromFile("d:\\original.pdf"); GdPicturePDF.SmartRedactionOptions redactOptions = new GdPicturePDF.SmartRedactionOptions() { ResourcePath = @"d:\resources", RedactCreditCardNumbers = true, RedactEmailAddresses = true, RedactPhoneNumbers = true, RedactVatIDs = true, RedactURIs = true, RedactIBANs = true, MarkColor = GdPictureColor.Blue }; gdpicturePDF.SmartRedaction(redactOptions); gdpicturePDF.SaveToFile("d:\\redacted.pdf"); } |